realtek: use devm_kzalloc() for serdes debugfs setup
authorMarkus Stockhausen <[email protected]>
Sun, 14 Dec 2025 09:07:38 +0000 (10:07 +0100)
committerRobert Marko <[email protected]>
Mon, 15 Dec 2025 08:29:17 +0000 (09:29 +0100)
commita4011797c2fb160a696edfc29993c78ab5edc3d1
tree9c615b15ba54480776b40dfff4c622918f8a8bad
parent3c073b5cb208e9ca77a786f38dc941316ee25c67
realtek: use devm_kzalloc() for serdes debugfs setup

This will free memory automatically during driver unloading.

Signed-off-by: Markus Stockhausen <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/21157
Signed-off-by: Robert Marko <[email protected]>
target/linux/realtek/files-6.12/drivers/net/mdio/mdio-realtek-otto-serdes.c